<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '登录';
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="middle-box  loginscreen  animated fadeInDown">

  <h1 class="logo-name text-center">H1</h1>
  <h3 class="text-center">欢迎使用 H+</h3>
  <div>
    <?php $form = ActiveForm::begin([
      'id' => 'login-form',
      'options' => ['class' => 'form form-horizontal'],
      'fieldConfig' => [
        'template' => "<div class=\"col-xs-12\">{input}</div>\n<div class=\"col-xs-12\">{error}</div>",
        // 'labelOptions' => ['class' => 'online'],{label}\n
      ]
    ]); ?>

    <?= $form->field($model, 'username')->textInput(['placeholder'=>'用户名']) ?>

    <?= $form->field($model, 'password')->passwordInput(['placeholder'=>'密码']) ?>
    <div class="col-xs-12">
      <?= $form->field($model, 'rememberMe')->checkbox([]) ?>
    </div>
    <div class="">
      <?= Html::submitButton('登 录', ['class' => 'btn btn-primary block full-width m-b', 'name' => 'login-button']) ?>
    </div>
    <?php ActiveForm::end(); ?>

  </div>
</div>
